package cn.seecoder.courselearning.po.test;

import cn.seecoder.courselearning.vo.test.SubmitVO;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Submit {

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 测试id
     */
    private Integer tid;

    /**
     * 题目id
     */
    private Integer qid;

    /**
     * 用户答案
     */
    private char ans;

    public Submit(SubmitVO submitVO) {
        uid = submitVO.getUid();
        tid = submitVO.getTid();
        qid = submitVO.getQid();
        ans = submitVO.getAns();
    }

}
